package com.eastfair.venuebooking.api;

import com.eastfair.core.base.R;
import com.eastfair.venueservice.dto.HomeBuilderDrawingCategoryAuditDTO;
import com.eastfair.venueservice.enumeration.HomeBuilderDrawingCategoryAuditDrawingSourceEnum;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * 主场搭建商图纸分类审核记录 feign.
 *
 * @author dqq
 * @date 2023 /4/28
 */
@FeignClient("venue-services-manage/homeBuilderDrawingCategoryAudit")
public interface HomeBuilderDrawingCategoryAuditFeign {

    /**
     * 批量保存主场搭建商图纸分类审核记录.
     *
     * @param list the list
     * @return the r
     */
    @PostMapping("/saveBatch")
    R<Boolean> saveBatch(@RequestBody List<HomeBuilderDrawingCategoryAuditDTO> list);

    /**
     * 报馆ID删除图纸分类审核.
     *
     * @param reportId      the report id
     * @param drawingSource the drawing source
     * @return the r
     */
    @PostMapping("/remove/reportId")
    R<Boolean> removeByReportId(@RequestParam("reportId") Long reportId,
                                @RequestParam("drawingSource") HomeBuilderDrawingCategoryAuditDrawingSourceEnum drawingSource);
}